import javax.swing.*;
import java.awt.*;

/**
 * @Author: Miyako
 * @Date: 2024-08-25-16:34
 * @Description:游戏窗口
 */


public class World extends JPanel {
    public static final int WIDTH = 400;
    public static final  int Height=700;

    private Sky sky = new Sky();
    private Hero hero = new Hero();
    private FlyingObject[] enemies = {};//敌人集合
    private Bullet[] bullets = {};//子弹集合

    public static void main(String[] args) {
        JFrame frame = new JFrame("Shoot Game");
        World world = new World();
        frame.add(world);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(WIDTH,Height);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);

    }

}
